<?php
/**
 * FlickrPhotosetsErrors class file
 * @package FlickrPhotosets
 */

/**
 * This class contains all of the error definitions. Each error is
 * a static array with the parameters for the error.
 * 
 * @package FlickrPhotosets
 * @author Brad Dougherty <bdougherty@gmail.com>
 * @version 7.10.18
 * @license http://www.gnu.org/licenses/gpl.html GNU General Public License 3.0
 * @since Class available since Release 2.0
 */

final class FlickrPhotosetsErrors {
	
	/**
	 * Gallery is disabled.
	 */
	static $gallery_disabled = array(
		'title'       => '<fb:name uid="%uid%" firstnameonly="true" capitalize="true" /> has disabled the gallery.',
		'message'     => '',
		'with_header' => true,
		'fatal'       => true
	);
	
	/**
	 * Photostream is disabled.
	 */
	static $photostream_disabled = array(
		'title'       => '<fb:name uid="%uid%" firstnameonly="true" capitalize="true" /> has disabled the photostream.',
		'message'     => '',
		'with_header' => true,
		'fatal'       => true
	);
	
	/**
	 * Photosets are disabled.
	 */
	static $photosets_disabled = array(
		'title'       => '<fb:name uid="%uid%" firstnameonly="true" capitalize="true" /> has disabled photosets.',
		'message'     => '',
		'with_header' => true,
		'fatal'       => true
	);
	
	/**
	 * Geotagged photos are disabled.
	 */
	static $geotagged_disabled = array(
		'title'       => '<fb:name uid="%uid%" firstnameonly="true" capitalize="true" /> has disabled geotagged photos.',
		'message'     => '',
		'with_header' => true,
		'fatal'       => true
	);
	
	/**
	 * User has tagged photos of themselves.
	 */
	static $no_tagged_photos = array(
		'title'       => 'There are no tagged Flickr photos of <fb:name uid="%uid%" firstnameonly="true" capitalize="true" />.',
		'message'     => '',
		'message_you' => '',
		'with_header' => false,
		'fatal'       => false
	);
	
	/**
	 * User has no photos.
	 */
	static $no_photos = array(
		'title'       => '<fb:name uid="%uid%" firstnameonly="true" capitalize="true" /> has no photos.',
		'message'     => 'Tell <fb:pronoun uid="%uid%" objective="true" /> to <a href="http://www.flickr.com/photos/upload/">go upload some</a>!',
		'message_you' => 'You should <a href="http://www.flickr.com/photos/upload/">go upload some</a>!',
		'with_header' => false,
		'fatal'       => false
	);
	
	/**
	 * User has no photosets.
	 */
	static $no_photosets = array(
		'title'       => '<fb:name uid="%uid%" firstnameonly="true" capitalize="true" /> has no photosets.',
		'message'     => 'Tell <fb:pronoun uid="%uid%" objective="true" /> to <a href="http://www.flickr.com/photos/organize/?start_tab=sets">go make some</a>!',
		'message_you' => 'You should <a href="http://www.flickr.com/photos/organize/?start_tab=sets">go make some</a>!',
		'with_header' => false,
		'fatal'       => false
	);
	
	/**
	 * User hasn't added the app.
	 */
	static $not_added = array(
		'title'       => 'This user has not added the application to their Facebook account.',
		'message'     => 'We cannot show you their photos until they add the application to their account and connect it to a Flickr account.',
		'with_header' => true,
		'fatal'       => true
	);
	
	/**
	 * User hasn't authenticated with Flickr.
	 */
	static $not_linked = array(
		'title'       => '<fb:name uid="%uid%" firstnameonly="true" capitalize="true" /> has not linked <fb:pronoun uid="%uid%" possessive="true" /> account to a Flickr account.',
		'message'     => 'We cannot show you <fb:pronoun uid="%uid%" possessive="true" /> photos until <fb:name uid="%uid%" firstnameonly="true" /> #links#link# <fb:pronoun uid="%uid%" possessive="true" /> Flickr account to <fb:pronoun uid="%uid%" possessive="true" /> Facebook account.',
		'with_header' => true,
		'fatal'       => true
	);
	
	/**
	 * Viewer is not friends with the user.
	 */
	static $not_friends = array(
		'title'       => '<fb:name uid="%uid%" firstnameonly="true" capitalize="true" /> has elected to only show <fb:pronoun uid="%uid%" possessive="true" /> Flickr photos to <fb:pronoun uid="%uid%" possessive="true" /> friends.',
		'message'     => 'We cannot show you <fb:name uid="%uid%" firstnameonly="true" possessive="true" /> photos unless you are friends with <fb:pronoun uid="%uid%" objective="true" />.',
		'with_header' => true,
		'fatal'       => false
	);
	
	/**
	 * Generic private message.
	 */
	static $private = array(
		'title'       => '<fb:name uid="%uid%" firstnameonly="true" capitalize="true" /> has elected to make this page private.',
		'message'     => '',
		'with_header' => true,
		'fatal'       => false
	);
	
	/**
	 * Generic database error.
	 */
	static $database_error = array(
		'title'       => 'The information could not be retrieved from the database.',
		'message'     => 'Please try again.',
		'with_header' => true,
		'fatal'       => true
	);
	
	/**
	 * User has no geotagged photos.
	 */
	static $no_geotagged_photos = array(
		'title'       => '<fb:name uid="%uid%" firstnameonly="true" capitalize="true" /> has no geotagged photos!',
		'message'     => 'You should tell <fb:pronoun uid="%uid%" objective="true" /> to get <a href="http://www.flickr.com/photos/organize/?start_tab=map">geotagging</a>!',
		'message_you' => 'You should get <a href="http://www.flickr.com/photos/organize/?start_tab=map">geotagging</a>!',
		'with_header' => false,
		'fatal'       => false
	);
	
	/**
	 * No photos to show on profile
	 */
	static $profile_no_photos = array(
		'title'       => 'No photos.',
		'message'     => 'Your search may be too restrictive. Try removing tags or increasing the number of photos.',
		'with_header' => false,
		'fatal'       => true
	);
	
	/**
	 * No photosets to show on profile
	 */
	static $profile_no_photosets = array(
		'title'       => 'No photosets.',
		'message'     => '',
		'with_header' => false,
		'fatal'       => true
	);
	
	/**
	 * No photos in this photoset visible to you
	 */
	static $photosets_no_photos = array(
		'title'       => 'No photos.',
		'message'     => 'Sorry, there are no photos visible to you in this photoset.',
		'with_header' => false,
		'fatal'       => false
	);
	
}

?>